package gphoto.servlet.command;

import gphoto.vo.Message;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class DeconnexionCmd implements Command {

	public String execute(HttpServletRequest req) throws Exception {

		HttpSession session = req.getSession();
		session.setAttribute("connexion", null);
		
		session.setAttribute("message", new Message("Deconnexion", Message.MESSAGE_INFO));
		
		return "/accueil.jsp";
	}
}
